package com.smallA.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

/**
 * 角色权限表实体类
 *
 * @author 君未洋
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Access implements GrantedAuthority {
    private int id;
    private String name;
    private String context;

    @JsonIgnore
    @Override
    public String getAuthority() {
        return this.name;
    }
}
